package com.governtalk.backend.repository;

import com.governtalk.backend.entity.QuestionCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuestionCategoryRepository extends JpaRepository<QuestionCategory, Long> {
    
    List<QuestionCategory> findByParentIdIsNull();
    
    List<QuestionCategory> findByParentId(Long parentId);
}
